package com.code.softeem.lianxi.demo3;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/3/20 15:25
 * @description
 */
public class xmjl extends emp{
    private double jiangjin;

    public xmjl(String name, String id, double money, double jiangjin) {
        super(name, id, money);
        this.jiangjin = jiangjin;
    }

    public xmjl(double jiangjin) {
        this.jiangjin = jiangjin;
    }

    public xmjl() {
    }

    @Override
    public void jsgz() {
        double nx = getMoney()*12+jiangjin*12;
        System.out.println(getName()+"经理年薪为 = " + nx);
    }
}
